<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>网上商城</title>
	</head>
	<body>
		<div class="wraper">
			<jsp:include page="/common/header.jsp"></jsp:include>
			<div class="content_buy">
				<div class="flow-steps ">
					<ol class="num5">
						<li class="current">
							<span class="first">1.加入购物车</span>
						</li>
						<li>
							<span>2.确认订单信息</span>
						</li>
						<li>
							<span>3.付款</span>
						</li>
						<li>
							<span>4.确认收货</span>
						</li>
						<li class="last">
							<span>5.完成</span>
						</li>
					</ol>
				</div>
				<div class="first_step">
					<div id="cart">
						<table id="J_CartEnable" class="cart-table" cellspacing="0"
							cellpadding="0">
							<colgroup valign="middle">
								<col width="62" />
								<col />
								<col width="70" />
								<col width="70" />
								<col width="100" />
								<col width="70" />
								<col width="116" />
								<col width="56" />
							</colgroup>
							<thead>
								<tr>
									<th class="s-chk">
										<label for="J_SelectAll">
											<!--<input id="J_SelectAll" type="checkbox" />
											全选-->
										</label>
									</th>
									<th class="s-title">
										店铺宝贝
									</th>
									<th class="s-point">
										获积分
									</th>
									<th class="s-price">
										单价(元)
									</th>
									<th class="s-amount">
										数量
									</th>
									<th class="s-agio">
										优惠
									</th>
									<th class="s-total">
										合计(元)
									</th>
									<th class="s-del">
										&nbsp;
									</th>
								</tr>
							</thead>
							<tbody>
								<!--<tr class="shop">
								</tr>-->
								<c:forEach items="${scList}" var="item">
									<tr class="uncod selected">
										<td class="s-chk">
											<!-- <input type="checkbox" checked="checked" value="196009823"
												name="id" /> -->
										</td>
										<td class="s-title">
											<a title="${item.goodsInfo.goodsName}" target="_blank"
												href="${ctx}/pub/goods/goods!getGoodDetail.action?id=${item.goodsInfo.id }">
												<img class="sp2" src="${ctx}/${item.goodsInfo.goodsUrl}" />
												${item.goodsInfo.goodsName} </a>
										</td>
										<td class="s-point">
											<em> <fmt:formatNumber
													value="${item.goodsInfo.memberPrice/100}" pattern="#" /> </em>
										</td>
										<td class="s-price">
											<em>${item.goodsInfo.memberPrice}</em>
										</td>
										<td class="s-amount">
											<!-- <input class="text text-amount" type="text" data-now="1"
												data-max="100" value="1" /> -->
											${item.num}
										</td>
										<td class="s-agio">
											${(item.goodsInfo.marketPrice-item.goodsInfo.memberPrice)*item.num}
										</td>
										<td class="s-total">
											<em>${item.sumPrice}</em>
										</td>
										<td class="s-del">
											<a
												href="${ctx }/member/shopcart/shop!deleteShopCartByID?shopCart.pageNo=${shopCart.pageNo}&shopCart.orderBy=${shopCart.orderBy}&shopCart.order=${shopCart.order}&id=${item.id }">删除</a>
										</td>
									</tr>
								</c:forEach>
							</tbody>
							<tfoot>
								<tr>
									<td class="go" colspan="8">
										<a href="${ctx }/member/shopcart/shop!choseAddress"
											class="btn_buy"> </a>
									</td>
								</tr>
							</tfoot>
						</table>
					</div>
				</div>
			</div>
			<!-- <div>
								第${shopCart.pageNo}页, 共${shopCart.totalPages}页
								<s:if test="shopCart.hasPre">
									<a
										href="${ctx }/member/shopcart/shop!getShopCartList?shopCart.pageNo=${shopCart.prePage}&shopCart.orderBy=${shopCart.orderBy}&shopCart.order=${shopCart.order}">上一页</a>
								</s:if>
								<s:if test="shopCart.hasNext">
									<a
										href="${ctx }/member/shopcart/shop!getShopCartList?shopCart.pageNo=${shopCart.nextPage}&shopCart.orderBy=${shopCart.orderBy}&shopCart.order=${shopCart.order}">下一页</a>
								</s:if>
							</div>
							<div>
								<a href="${ctx }/member/shopcart/shop!deleteAllShopCart">清空</a>
								<a href="${ctx}">继续购物</a>
								<a href="${ctx }/member/shopcart/shop!buy">结账</a>
							</div> -->
			<jsp:include page="/common/footer.jsp"></jsp:include>
		</div>
	</body>
</html>
